package com.blog.service.Impl;

import com.blog.dao.UserMapper;
import com.blog.pojo.User;
import com.blog.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author
 * @create 2018-06-04 15:11
 **/
@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;


    /**
     * 判断用户是否存在
     * @return
     */
    public User checkUser(String loginName, String password) {

        return userMapper.checkUser(loginName, password);
    }
}
